package com.lcxsoft.partnerservice.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author lcx
 * @since 2022-01-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PartnerUser对象", description="")
public class PartnerUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户主键")
    @TableId(value = "partner_user_id", type = IdType.ID_WORKER_STR)
    private String partnerUserId;

    @ApiModelProperty(value = "学校主键")
    private String schoolId;

    @ApiModelProperty(value = "用户昵称")
    private String partnerUserNickname;

    @ApiModelProperty(value = "用户手机号码")
    private String partnerUserPhone;

    @ApiModelProperty(value = "用户密码")
    private String partnerUserPassword;

    @ApiModelProperty(value = "性别 代码DM01")
    private String parnterUserGender;

    @ApiModelProperty(value = "账户余额")
    private BigDecimal partnerUserBalance;

    @ApiModelProperty(value = "身份证号码")
    private String partnerIdnumber;

    @ApiModelProperty(value = "用户头像")
    private String partnerUserAvatar;

    @ApiModelProperty(value = "抽成比例")
    private Double partnerRate;

    @ApiModelProperty(value = "出生日期")
    @DateTimeFormat( pattern = "yyyy-MM-dd")
    private LocalDate userBirthday;

    @ApiModelProperty(value = "激活状态")
    private Boolean activeflag;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;

    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatetime;

    @ApiModelProperty(value = "删除时间")
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deletetime;

    @ApiModelProperty(value = "删除标识")
    private Boolean deleteflag;


}
